package xiao.ke.sbdemo.job;/**
 * @author XuXiaoK
 * @create 2019-11-26 20:59
 */

import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @Author XiaoKe
 * @Date 2019/11/26 20:59
 * @Description TODO
 */
@Component
@EnableScheduling
public class TestTask {

    //@Scheduled(fixedRate = 2000)
    public void sum() {
        System.out.println("当前时间" + new Date());
    }
}
